package com.zzy.generator;

import cn.hutool.core.io.FileUtil;

import java.io.File;

public class StaticGenerator {
    public static void main(String[] args) {
        String projectPath = System.getProperty("user.dir");
        //code-gene1219/demo-project/acm-template---
        // projectPath+File.separator+"demo-project"+ File.separator+"acm-template";

        //demo-project/acm-template-----------------demo-project/acm-template

        String inputPath = projectPath+File.separator+"code-gene1219"+File.separator+"demo-project"+ File.separator+"acm-template";
        String outputPath = projectPath;
        copyFilesByHutool(inputPath, outputPath);
    }

    /**
     * 拷贝文件（Hutool 实现，会将输入目录完整拷贝到输出目录下）
     * @param inputPath 输入的路径
     * @param outputPath 输出的路径
     */
    public static void copyFilesByHutool(String inputPath, String outputPath) {
        FileUtil.copy(inputPath, outputPath, false);
    }

}
